<template>
    <div>
        B组件 </div>
</template>

<script setup>
import { onMounted, onUnmounted, onActivated, onDeactivated } from 'vue';


onActivated(() => {
    console.log('B激活-内存中')
})

onDeactivated(() => {
    console.log('B挂起-内存中')
})

onMounted(() => {
    console.log('B重新创建了')
})

onUnmounted(() => {
    console.log('B销毁了')
})
defineOptions({
    name: "B"
})
</script>

<style lang="scss" scoped></style>